<template>
	<view>
		<view class="box" @click="cutLanguage">
			<view>ۋېي ئۇيغۇر</view>
			<image src="/static/image/exchange.png" mode=""></image>
			<view>汉语</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "language",
		data() {
			return {

			};
		},
		methods:{
			cutLanguage(){
				this._i18n.locale == 'zh'?this._i18n.locale ='en':this._i18n.locale ='zh'
		
				uni.setStorageSync('locale', this._i18n.locale)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		position: fixed;
		right: 6%;
		bottom: 15%;
		width: 120rpx;
		height: 120rpx;
		border-radius: 50%;
		background-color: #FFC100;
		color: #141414;
		font-size: 24rpx;
		padding: 15rpx 0;
		box-sizing: border-box;

		image {
			width: 21rpx;
			height: 21rpx;
			margin: 4rpx auto;
			display: block;
		}

		view {
			text-align: center;
		}
	}
</style>
